package gpx;

import java.util.Date;

@SuppressWarnings("serial")
/**
 * Slouzi ma upravu formatu datumu pridavano do .gpx exportnuteho z bikemapu importovatelneho do endomondo 
 * @author Petr
 *
 */
public class myDate extends Date{
	public myDate(){
		super();
	}
/**
 * PReste takovy format potrebuju
 * @return
 */
	public String getDateFormat(){
		return("<time>"+String.valueOf(this.getYear()+1900)+"-"+
				String.valueOf(this.getMonth()+1)+"-"+
				String.valueOf(this.getDate())+"-T08:00:00Z</time>");
	}
	
	public String getMyDate(){
		return(String.valueOf(this.getYear()+1900)+"-"+
				String.valueOf(this.getMonth()+1)+"-"+
				String.valueOf(this.getDate()));
	}
}